#ifndef INC_LIST
#define INC_LIST

struct _List {
   void *data;
   struct _List *prev;
   struct _List *next;
};

typedef struct _List * List;

int ListAdd (List *list,void *data,int size);
int ListNext (List *list);
int ListPrev (List *list);
void * ListGetData (List list);
void ListFree (List list);

#endif
